package com.old.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author 86166
 */
@Data
public class Activity extends BaseEntity{

    @ApiModelProperty(value = "活动名称")
    @TableField("activity_name")
    private String activityName;

    @ApiModelProperty(value = "活动地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "活动开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField("start_time")
    private Date startTime;

    @ApiModelProperty(value = "活动开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField("end_time")
    private Date endTime;

    @ApiModelProperty(value = "活动介绍")
    @TableField("details")
    private String details;

    @ApiModelProperty(value = "活动图片路径")
    @TableField("image_url")
    private String imageUrl;

    @ApiModelProperty(value = "活动人数限制")
    @TableField("people")
    private int people;

    @ApiModelProperty(value = "活动已报名人数")
    @TableField("number")
    private long number;

    @ApiModelProperty(value = "组织名称")
    @TableField("team_name")
    private String teamName;

}
